![]() |
|
![]() ![]() ![]() |
|
Special Effects: Overlays
0 (There are no images in what you see just above. See the style sheet gallery on the Microsoft web site for many more examples.) Unfortunately, this is also where style sheets get complicated, partly because CSS is still a young technology and implementation of CSS support is nowhere complete or standardized. IE 3.0 handled overlays strictly through margin (box) properties. Subsequently, Microsoft and Netscape came to an agreement that overlays should be handled through positioning; they have not (yet), however, come to agreement on how positioning should be defined. (Positioning in the three browsers will be discussed in detail in the pages that follow.) This means that if you want to use positioning, you will need to write separate style sheets for each browser, and use a JavaScript to force the page to use the right one according to which browser the user has. For overlays, you will need to use scripting anyway, because browsers that don't support CSS will simply render both the blocks of text in succession, which is especially problematic for shadowed text, since the result will be simple repetition of the paragraph. The solution is to use a JavaScript to write the overlayed text only if the browser supports CSS, and to make sure that the page will still be intelligible, if not all that it can be, without the overlay. We'll look at a script that does this a little later. Some additional issues for effects that involve overlaying one text block on another:
|
|
![]() ![]() ![]() |